package me.timlong.service;

import me.timlong.dataobject.UserDO;
import me.timlong.error.BusinessException;
import me.timlong.service.model.UserModel;
import org.springframework.stereotype.Service;

public interface UserService {

    UserModel getUserById(int id);

    // 缓存模型
    UserModel getUserByIdInCache(int id);

    void register(UserModel userModel) throws BusinessException;

    /*
    telephone ==> 用户传入的手机号
    password ==> 用户传入的手机密码加密
     */
    UserModel validateLogin(String telephone, String encrptPassword) throws BusinessException;


}
